package com.augurit.wf.app.document.utils;

import java.util.List;
/**
 * 树节点类
 * @author Administrator
 *
 */
public class TreeNode {
	private String id;
	private String code;
    private String text;
    private boolean leaf;//Ext
    private boolean hasChildren;//JQuery    
    private String cls;    
    private String iconCls;
    private String qtip;
    private boolean expandable;//是否展开
    //节点连接
    private String url;
    //节点类型
    private String type;
    //节点icon路径
    private String icon;
    //用户自定义类型1 用于判断是专业节点 还是报表节点
    private String cstype;    
    //报表类型
    private String dtype;
    
    
    private List<TreeNode> children;
	public String getId() {
		return id;
	}
	public void setId(String id) {
		this.id = id;
	}
	public String getText() {
		return text;
	}
	public void setText(String text) {
		this.text = text;
	}
	public boolean isLeaf() {
		return leaf;
	}
	public String getType() {
		return type;
	}
	public void setType(String type) {
		this.type = type;
	}
	public void setLeaf(boolean leaf) {
		this.leaf = leaf;
	}
	public String getCls() {
		return cls;
	}
	public void setCls(String cls) {
		this.cls = cls;
	}
	public List<TreeNode> getChildren() {
		return children;
	}
	public void setChildren(List<TreeNode> children) {
		this.children = children;
	}
	public String getUrl() {
		return url;
	}
	public void setUrl(String url) {
		this.url = url;
	}
	public String getIcon() {
		return icon;
	}
	public void setIcon(String icon) {
		this.icon = icon;
	}
	public String getCstype() {
		return cstype;
	}
	public void setCstype(String cstype) {
		this.cstype = cstype;
	}
	public String getDtype() {
		return dtype;
	}
	public void setDtype(String dtype) {
		this.dtype = dtype;
	}
	public String toString(){
		return text;
	}
	public boolean isHasChildren() {
		return hasChildren;
	}
	public void setHasChildren(boolean hasChildren) {
		this.hasChildren = hasChildren;
	}
	public String getIconCls() {
		return iconCls;
	}
	public void setIconCls(String iconCls) {
		this.iconCls = iconCls;
	}
	public String getQtip() {
		return qtip;
	}
	public void setQtip(String qtip) {
		this.qtip = qtip;
	}
	public boolean isExpanded() {
		return expandable;
	}
	public void setExpanded(boolean expandable) {
		this.expandable = expandable;
	}
	public String getCode() {
		return code;
	}
	public void setCode(String code) {
		this.code = code;
	}


}
